Skip to content

plugins/obs-ffmpeg: remove restart guard for RIST#13521

Open
RossWang wants to merge 1 commit into
obsproject:masterfrom
RossWang:fix/rist-activate
Open

plugins/obs-ffmpeg: remove restart guard for RIST#13521
RossWang wants to merge 1 commit into
obsproject:masterfrom
RossWang:fix/rist-activate

Conversation

@RossWang

@RossWang RossWang commented Jun 5, 2026

Copy link
Copy Markdown

Description

Remove restart guard. Media Source running RIST can shutdown successfully when it becomes inactive.

Motivation and Context

Media Source with RIST protocol consuming 1 CPU core at 100% when not active. Updated to the latest library version solved the CPU issue but it is still running in the background which is not ideal. I think the original intention is to prevent crash. After years of development, librist is much stable now. The guard can be removed.

How Has This Been Tested?

  • Windows 10
  • MSVC build
    (librist in obs-deps need to be updated accordingly)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

We may not need this with the latest library version
@RytoEX RytoEX requested review from pkviet and tt2468 June 5, 2026 18:51

@pkviet pkviet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, posted too quickly.
Edit: did you check explicitly that there's no longer any crash after enabling disabling enabling, and so forth ?
Give info on the librist server version used to stream to the Media Source too in your tests.

@pkviet

pkviet commented Jun 8, 2026

Copy link
Copy Markdown
Member

PS: for reference check the original PR adding the guard
#5962

@WizardCM WizardCM added the kind/bug Categorizes issue or PR as related to a bug. label Jun 10, 2026
@RossWang

RossWang commented Jun 11, 2026

Copy link
Copy Markdown
Author

The last commit (5e73e582f43e3dbfd3fee7cde44b8001740043e4) is good.

Tested on OBS

  • Media Source: rist://@127.0.0.1:1234
  • Recording: rist://127.0.0.1:1234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants